package cn.interestingshop.service.impl;

import cn.interestingshop.dao.ClassifyDao;
import cn.interestingshop.dao.impl.ClassifyDaoImpl;
import cn.interestingshop.entity.Classify;
import cn.interestingshop.service.ClassifyService;

import java.util.List;

public class ClassifyServiceImpl implements ClassifyService {
    ClassifyDao dao=new ClassifyDaoImpl();

    @Override
    public List<Classify> selectAll(int pageNo, int pageSize) {
        return dao.selectAll(pageNo,pageSize);
    }

    @Override
    public int selectCount() {
        return dao.selectCount();
    }

    @Override
    public int insert(Classify classify) {
        return dao.insert(classify);
    }

    @Override
    public Classify selectOne(int id) {
        return dao.selectOne(id);
    }

    @Override
    public int update(Classify classify) {
        return dao.update(classify);
    }

    @Override
    public List<Classify> selectAll(int parentId) {
        return dao.selectAll(parentId);
    }
}
